import ij.IJ;
import ij.ImagePlus;
import ij.plugin.filter.PlugInFilter;
import ij.process.ImageProcessor;


public class Toggle_Debug_Mode implements PlugInFilter  {

	public void run(ImageProcessor arg0) {
		TableauEnvironment._debugMode = !TableauEnvironment._debugMode;
		String debugModeStatus;
		if (TableauEnvironment._debugMode) {
			debugModeStatus = "ON";
		}
		else {
			debugModeStatus = "OFF";
		}
		IJ.showMessage("Debug mode is " + debugModeStatus);
	}

	public int setup(String arg0, ImagePlus arg1) {
		return DOES_ALL;
	}

}
